<?php get_header(); ?>

<div id="content" class="page-block">

	<?php get_sidebar(); ?>

	<div id="wide">

		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

			<div class="post" id="post-<?php the_ID(); ?>">

				<h2><?php the_title(); ?></h2>
				<small><a href="<?php bloginfo("wpurl") ?>/?p=<?php the_ID() ?>" title="Permanent Link to <?php the_title_attribute(); ?>">Permanent link to this post</a></small>

				<div class="entry">
					<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>

					<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
					<?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>

				</div>

				<p class="postmetadata alt">
					This entry was posted
					<?php /* This is commented, because it requires a little adjusting sometimes.
						You'll need to download this plugin, and follow the instructions:
						http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
						/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
					on <?php the_date() ?> at <?php the_time() ?>
					and is filed under <?php the_category(', ') ?>.

					<br/><?php edit_post_link('Edit this entry','','.'); ?>
				</p>

			</div>

			<div class="navigation">
				<div class="alignleft"><?php previous_post_link('&laquo; %link (older)') ?></div>
				<div class="alignright"><?php next_post_link('(newer) %link &raquo;') ?></div>
			</div>

			<!-- <div id="comments">
				<?php comments_template(); ?>
			</div> -->

		<?php endwhile; else: ?>

			<p>Sorry, no posts matched your criteria.</p>

		<?php endif; ?>

	</div> <!-- close #wide -->

</div> <!-- close #content -->

<?php get_footer(); ?>

